package main

import (
	"fmt"
	"strings"

	"github.com/shopspring/decimal"
)

func main() {
	//截取字符串左边符号
	s := "¥25.70"
	stStr := strings.TrimLeft(s, "¥")
	fmt.Println(stStr)

	//科学计数转字符串
	var price string
	price = "1.6262784e+12"
	price = fmt.Sprintf("%v", price)

	decimalNum, err := decimal.NewFromString(price)
	if err != nil {
		fmt.Println(err)
		return
	}
	fmt.Println(decimalNum)
}
